package org.wisigoth.chat.swing.chatscreen;



public class ChatFrame extends javax.swing.JFrame {
	
	private ChatController chatController;

	public ChatFrame(ChatController chatController) {
		this.chatController = chatController;
		this.initComponents();
	}

	
	
	private void initComponents() {
		
		this
		.setDefaultCloseOperation(javax.swing.WindowConstants.DO_NOTHING_ON_CLOSE);
		this.tabbedPane = new javax.swing.JTabbedPane();
		this.chatFrameMenuBar = new javax.swing.JMenuBar();
		this.chatMenu = new javax.swing.JMenu();
		this.findMenuItem = new javax.swing.JMenuItem();
		this.saveMenuItem = new javax.swing.JMenuItem();
		this.clearMenuItem = new javax.swing.JMenuItem();
		this.sendMessageMenuItem = new javax.swing.JMenuItem();
		this.actionSeparator = new javax.swing.JSeparator();
		this.optionsMenu = new javax.swing.JMenu();
		this.jCheckBoxMenuItem1 = new javax.swing.JCheckBoxMenuItem();
		this.jCheckBoxMenuItem2 = new javax.swing.JCheckBoxMenuItem();
		this.jSeparator1 = new javax.swing.JSeparator();
		this.jCheckBoxMenuItem3 = new javax.swing.JCheckBoxMenuItem();
		this.jCheckBoxMenuItem4 = new javax.swing.JCheckBoxMenuItem();

		this.chatMenu.setText("Chat");

		this.findMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
				java.awt.event.KeyEvent.VK_F,
				java.awt.event.InputEvent.CTRL_MASK));
		this.findMenuItem.setText("Find...");
		this.findMenuItem
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						ChatFrame.this.findMenuItemActionPerformed(evt);
					}
				});
		this.chatMenu.add(this.findMenuItem);

		this.sendMessageMenuItem.setText("send message...");
		this.chatMenu.add(this.sendMessageMenuItem);

		this.findMenuItem.setText("Find...");
		this.findMenuItem
				.addActionListener(new java.awt.event.ActionListener() {
					public void actionPerformed(java.awt.event.ActionEvent evt) {
						ChatFrame.this.findMenuItemActionPerformed(evt);
					}
				});
		this.chatMenu.add(this.findMenuItem);

		this.saveMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
				java.awt.event.KeyEvent.VK_S,
				java.awt.event.InputEvent.CTRL_MASK));
		this.saveMenuItem.setText("Save As...");
		this.chatMenu.add(this.saveMenuItem);

		this.clearMenuItem.setAccelerator(javax.swing.KeyStroke.getKeyStroke(
				java.awt.event.KeyEvent.VK_L,
				java.awt.event.InputEvent.CTRL_MASK));
		this.clearMenuItem.setText("Clear Chat...");
		this.chatMenu.add(this.clearMenuItem);
		this.chatMenu.add(this.actionSeparator);

		this.chatFrameMenuBar.add(this.chatMenu);

		this.optionsMenu.setText("Options");

		this.jCheckBoxMenuItem1.setSelected(true);
		this.jCheckBoxMenuItem1.setText("Activate History");
		this.optionsMenu.add(this.jCheckBoxMenuItem1);

		this.jCheckBoxMenuItem2.setSelected(true);
		this.jCheckBoxMenuItem2.setText("Activate Sound");
		this.optionsMenu.add(this.jCheckBoxMenuItem2);
		this.optionsMenu.add(this.jSeparator1);

		this.jCheckBoxMenuItem3.setSelected(true);
		this.jCheckBoxMenuItem3.setText("Display Toolbar");
		this.optionsMenu.add(this.jCheckBoxMenuItem3);

		this.jCheckBoxMenuItem4.setSelected(true);
		this.jCheckBoxMenuItem4.setText("Display Timestamp");
		this.optionsMenu.add(this.jCheckBoxMenuItem4);

		this.chatFrameMenuBar.add(this.optionsMenu);
		this.add(this.chatFrameMenuBar);
		this.setJMenuBar(this.chatFrameMenuBar);
		this.setMinimumSize(new java.awt.Dimension(300, 400));
	}
	
    
    


	private void findMenuItemActionPerformed(java.awt.event.ActionEvent evt) {
		// TODO add your handling code here:
	}

	private javax.swing.JSeparator actionSeparator;
	private javax.swing.JMenuBar chatFrameMenuBar;
	private javax.swing.JMenu chatMenu;
	private javax.swing.JMenuItem clearMenuItem;
	private javax.swing.JMenuItem findMenuItem;
	private javax.swing.JMenuItem sendMessageMenuItem;
	private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem1;
	private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem2;
	private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem3;
	private javax.swing.JCheckBoxMenuItem jCheckBoxMenuItem4;
	private javax.swing.JSeparator jSeparator1;
	private javax.swing.JMenu optionsMenu;
	private javax.swing.JMenuItem saveMenuItem;
	
	private javax.swing.JTabbedPane tabbedPane;
	
	public javax.swing.JTabbedPane getTabbedPane() {
		return this.tabbedPane;
	}

}
